package trainingcamp.day01;
import java.util.Scanner;
public class 闰年的计算 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入年份数:");
        int year = scanner.nextInt();
        boolean leap=(year%4 == 0 && !(year%100 == 0)) || year%400 == 0;
        System.out.println(leap);
    }
}
